

import 'package:huajianshe_app/network/response/BaseResp.dart';
import 'package:json_annotation/json_annotation.dart';

part 'AuthModel.g.dart';

@JsonSerializable()
class LoginResp extends BaseResp {

  LoginData? data;
  LoginResp();

  factory LoginResp.fromJson(Map<String, dynamic> json) => _$LoginRespFromJson(json);

  @override
  LoginResp parseFromMap(Map<String, dynamic> map) {
    return LoginResp.fromJson(map);
  }

}

@JsonSerializable()
class LoginData {

  @JsonKey(name: 'member_sn')
  String? memberSn;

  @JsonKey(name: 'hx_username')
  String? hxId;

  @JsonKey(name: 'hx_password')
  String? hxPwd;

  LoginData();

  factory LoginData.fromJson(Map<String, dynamic> json) => _$LoginDataFromJson(json);
}